package com.rico;

import com.rico.beans.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ClassPathXmlApplicationContextHelloword {
    public static void main(String args[]){
        ApplicationContext context = new ClassPathXmlApplicationContext("services.xml");
        User user=(User)context.getBean("user");
        System.out.println(user.getUserName());
        System.out.println( user.getBirthDay());
    }
}
